define(() => {
    return function (goods) {
        return goods.reduce((prev, now) => now.check ? prev + Number(now.num) : prev, 0);
    }
})